Optimal. Leaf size=32 \[ \frac {\sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {17, 2717}
\begin {gather*} \frac {\sin (c+d x) \sqrt {b \cos (c+d x)}}{d \sqrt {\cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 17
Rule 2717
Rubi steps
\begin {align*} \int \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \, dx &=\frac {\sqrt {b \cos (c+d x)} \int \cos (c+d x) \, dx}{\sqrt {\cos (c+d x)}}\\ &=\frac {\sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 32, normalized size = 1.00 \begin {gather*} \frac {\sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 29, normalized size = 0.91
method | result | size |
default | \(\frac {\sin \left (d x +c \right ) \sqrt {b \cos \left (d x +c \right )}}{d \sqrt {\cos \left (d x +c \right )}}\) | \(29\) |
risch | \(-\frac {i \sqrt {b \cos \left (d x +c \right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right ) {\mathrm e}^{2 i \left (d x +c \right )}}{\left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}+\frac {i \sqrt {b \cos \left (d x +c \right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right )}{\left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}\) | \(85\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.59, size = 13, normalized size = 0.41 \begin {gather*} \frac {\sqrt {b} \sin \left (d x + c\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.46, size = 28, normalized size = 0.88 \begin {gather*} \frac {\sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{d \sqrt {\cos \left (d x + c\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 60 vs.
\(2 (29) = 58\).
time = 1.83, size = 60, normalized size = 1.88 \begin {gather*} \begin {cases} x \sqrt {b \cos {\left (c \right )}} \sqrt {\cos {\left (c \right )}} & \text {for}\: d = 0 \\0 & \text {for}\: c = - d x + \frac {\pi }{2} \vee c = - d x + \frac {3 \pi }{2} \\\frac {\sqrt {b \cos {\left (c + d x \right )}} \sin {\left (c + d x \right )}}{d \sqrt {\cos {\left (c + d x \right )}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.74, size = 31, normalized size = 0.97 \begin {gather*} \frac {2 \, \sqrt {b} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{d \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.39, size = 44, normalized size = 1.38 \begin {gather*} \frac {\sqrt {\cos \left (c+d\,x\right )}\,\sin \left (2\,c+2\,d\,x\right )\,\sqrt {b\,\cos \left (c+d\,x\right )}}{d\,\left (\cos \left (2\,c+2\,d\,x\right )+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________